The Dreamweaver JavaScript API > Enablers > dreamweaver.assetPalette.canInsertOrApply() |
![]() ![]() ![]() |
dreamweaver.assetPalette.canInsertOrApply()
Availability
Dreamweaver 4.0
Description
Determines if the selected elements can be inserted or applied. Returns true
or false
so the menu items can be enabled or disabled for insertion or application.
Arguments
None.
Returns
Returns false
if the current page is a template, and the current category is "Templates". Returns false
if no document is open. Returns false
if a library item is selected in the document and the current category is "Library". Otherwise returns true
.
![]() ![]() ![]() |